# class Car():
#     brand = "BMW"
#
# car1 = Car()
# car2 = Car()
#
# print(car1.brand)
# print(car2.brand)

class Car():
    brand = "BMW"

car1 = Car()
car2 = Car()

print(car1.brand) # BMW
print(car2.brand) # BMW

car1.brand = "Benz"
print(car1.brand) # Benz
print(Car.brand) # BMW

Car.brand = "Quattro"

car3 = Car()

print(Car.brand)  # Quattro
print(car3.brand)  # Quattro
print(car1.brand)  # BenZ
print(car2.brand)  # Quattro